using Gateway.IApplication.Department.Input;
using Gateway.Infrastructure.AutoDI;

namespace Gateway.IApplication.Department;

/// <summary>
/// 部门服务
/// </summary>
public interface IDepartmentApp: IDependency
{
    /// <summary>
    /// 创建
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task<string> Add(CreateDepartmentInput input);

    /// <summary>
    /// 更新
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task<bool> Update(UpdateDepartmentInput input);

    /// <summary>
    /// 删除
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
    Task<bool> Remove(string id);
}